package com.alliky.home.mvp.model

import com.alliky.common.entity.BaseResponse
import com.alliky.common.entity.User
import com.alliky.core.base.BaseModel
import com.alliky.core.net.RetrofitKt
import com.alliky.home.mvp.contract.LoginContract
import io.reactivex.Observable

/**
 * @Author: wxianing
 * @CreateDate: 2022/2/22 21:24
 * @Description: java类作用描述
 */
class LoginModel : BaseModel(), LoginContract.Model {

    override fun doLogin(username: String, password: String): Observable<BaseResponse<User>> {
        return RetrofitKt.service.login(username, password)
    }

}